package com.neumall.modules.demo.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.neumall.common.service.impl.CrudServiceImpl;
import com.neumall.modules.demo.dao.BidDao;
import com.neumall.modules.demo.dto.BidDTO;
import com.neumall.modules.demo.entity.BidEntity;
import com.neumall.modules.demo.service.BidService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 
 *
 * @author yinin yinin6@gmail.com
 * @since 1.0.0 2022-06-15
 */
@Service
public class BidServiceImpl extends CrudServiceImpl<BidDao, BidEntity, BidDTO> implements BidService {

    @Override
    public QueryWrapper<BidEntity> getWrapper(Map<String, Object> params){
        String id = (String)params.get("id");

        QueryWrapper<BidEntity> wrapper = new QueryWrapper<>();
        wrapper.eq(StringUtils.isNotBlank(id), "id", id);

        return wrapper;
    }


}